package com.linkhub.oms.admin.modules.order.domain.param.ordersplit;

import com.linkhub.oms.admin.modules.order.domain.param.BaseSingleOrderParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * @Description: 订单拆分参数
 * @Author: echo
 * @Date: 2024/4/7 10:50
 * @Version: 1.0
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("订单拆分参数")
public class OrderSplitParam extends BaseSingleOrderParam implements Serializable {

    @Valid
    @ApiModelProperty("包裹参数对象")
    @NotEmpty(message = "{validation.order.packages.notEmpty}")
    private List<OrderPackageParam> packages;
}
